﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace HotelManageSystem.Models
{
    public class RoleModel
    {
        [ScaffoldColumn(false)]
        public int ID { get; set; }

        [Display(Name = "名称")]
        [Required(ErrorMessage = "必须输入角色名称")]
        [StringLength(10,ErrorMessage="角色名称不能超过10个字符")]
        public string Name { get; set; }

        [StringLength(200,ErrorMessage="备注不能超过200个字符")]
        [Display(Name = "备注")]
        public string Remark { get; set; }
    }
}